package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.TrackInfoVo;
import com.atguigu.tingshu.vo.album.TrackListVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface TrackInfoService extends IService<TrackInfo> {

    //添加声音
    void saveTrackInfo(TrackInfoVo trackInfoVo);

    IPage<TrackListVo> findUserTrackPage(IPage<TrackListVo> page, TrackInfoQuery trackInfoQuery);

    //删除
    void removeTrackInfo(Long trackId);

    TrackInfo getTrackInfo(Long trackId);

    void updateTrackInfo(Long trackId, TrackInfoVo trackInfoVo);
}
